-- GENERATED SPELL FOR [Felspine the Greater] --


function spell0_21897(pUnit, Event) --@Fel Fire Aura,Self--
pUnit:FullCastSpellOnTarget(36006,pUnit)
pUnit:RegisterEvent('Sorts_21897', 580, 1)
end

function spell1_21897(pUnit, Event) --@Fel Flames,n/a--
pUnit:FullCastSpellOnTarget(38356,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21897', 5000, 1)
end

function spell2_21897(pUnit, Event) --@Flaming Wound,n/a--
pUnit:FullCastSpellOnTarget(37941,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21897', 15000, 1)
end

function Sorts_21897(pUnit, Event)
local choix_sorts_21897 = math.random(0, 2)
if choix_sorts_21897 == 0 then
pUnit:RegisterEvent('spell0_21897', 1, 1)
end
if choix_sorts_21897 == 1 then
pUnit:RegisterEvent('spell1_21897', 1, 1)
end
if choix_sorts_21897 == 2 then
pUnit:RegisterEvent('spell2_21897', 1, 1)
end
end

function mob21897_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21897', math.random(1500, 3000), 1)
end

function mob21897_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21897_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21897_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21897, 1, 'mob21897_Action')
RegisterUnitEvent(21897, 2, 'mob21897_Leave')
RegisterUnitEvent(21897, 3, 'mob21897_Kill')
RegisterUnitEvent(21897, 4, 'mob21897_Die')
